package com.qys.livesMall.shortVideo.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 短视频评论
 * </p>
 *
 * @author dp
 * @since 2023-05-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("h2_short_video_comments")
@Schema(name = "H2ShortVideoComments对象", description = "短视频评论")
public class H2ShortVideoComments implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId("id")
    private String id;

    @Schema(description = "评论父级id")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "来源")
    @TableField("source")
    private Integer source;

    @Schema(description = "评论人id")
    @TableField("user_id")
    private String userId;

    @Schema(description = "评论人昵称")
    @TableField("user_name")
    private String userName;

    @Schema(description = "短视频id")
    @TableField("short_video_id")
    private Long shortVideoId;

    @Schema(description = "短视频标题")
    @TableField("short_video_title")
    private String shortVideoTitle;

    @Schema(description = "评论信息")
    @TableField("short_video_content")
    private String shortVideoContent;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "状态(0显示,1隐藏)")
    @TableField("status")
    private Byte status;

    @Schema(description = "是否删除")
    @TableField("deleted")
    private Boolean deleted;

    @Schema(description = "点赞次数")
    @TableField("like")
    private Integer like;


    @Schema(description = "不喜欢次数")
    @TableField("dislike")
    private Integer dislike;

    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;
}
